<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加党组织信息':action=='Modify'?'修改党组织信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_organization', 'form': 'dataForm', 'primary_key':'Party_Organization_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">党组织信息</div>
        </div>
        <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">上级党组织</div>
              </template>
              <el-form-item prop="Party_Organization_Name">
                <yl-cascader @change="changeParent" v-model="dataForm.Parent_SerialNumber" placeholder="请选择上级党组织"
                  :options="Manager"
                  :props="{ value:'Party_Organization_SerialNumber', label:'Party_Organization_Name' ,checkStrictly: true }"></yl-cascader>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织名称</div>
              </template>
              <el-form-item prop="Party_Organization_Name"
                :rules="[{ required: true, message: '请输入党组织名称', trigger: 'blur' }]">
                <el-input v-model="dataForm.Party_Organization_Name" class="borderless-input" placeholder="请输入党组织名称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">成立日期</div>
              </template>
              <el-form-item prop="Establishment_Date">
                <el-date-picker v-model="dataForm.Establishment_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择成立日期" size="large" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">组织类型</div>
              </template>
              <el-form-item prop="Party_Organization_Type"
                :rules="[{ required: true, message: '请选择组织织类型', trigger: 'change' }]">
                <el-select v-model="dataForm.Party_Organization_Type" placeholder="请选择组织织类型" size="large"
                  @change="handleTypeChange">
                  <el-option v-for="item in Type" :key="item.value" :label="item.label" :value="item.value" />
                </el-select>
              </el-form-item>
            </el-descriptions-item>

            <el-descriptions-item>
              <template #label>
                <div class="cell-item">所属蓝牌</div>
              </template>
              <yl-select @change="changeBluePlate" :props="{value:'Blue_Plate_SerialNumber',label:'Blue_Plate_Name'}" v-model="dataForm.Blue_Plate_SerialNumber"
                clearable filterable placeholder="请选择所属蓝牌" :options="blue_plate">
                <el-table-column prop="Blue_Plate_SerialNumber" show-overflow-tooltip label="蓝牌编号"></el-table-column>
                <el-table-column prop="Blue_Plate_Name" show-overflow-tooltip label="蓝牌名称"></el-table-column>
                <el-table-column prop="Plate_Type_SerialNumber" show-overflow-tooltip label="蓝牌类型"></el-table-column>
                <el-table-column prop="Personal_Name" show-overflow-tooltip label="负责人"></el-table-column>
                <el-table-column prop="Contact_Phone" show-overflow-tooltip label="联系方式"></el-table-column>
              </yl-select>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">行政区</div>
              </template>
              <el-cascader @change="handleChange" v-model="dataForm.Village_Number" filterable class="borderless-input"
                :props="{value:'ProvinceNumber',label:'Province',children:'children' ,emitPath:false}" placeholder="请选择行政区" :options="city"
                style="width: 100%"></el-cascader>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织地址</div>
              </template>
              <el-form-item prop="Party_Organization_Address">
                <el-input v-model="dataForm.Party_Organization_Address" class="borderless-input"
                  placeholder="请输入党组织地址" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织所在地坐标</div>
              </template>
              <el-form-item prop="Coord" :rules="[{ required: true, validator:IS_Coords, trigger: 'blur' }]" >
                <el-input class="borderless-input" v-model="dataForm.Coord"  :rows="2"
                  type="textarea" placeholder="请输入党组织所在坐标" />
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织负责人</div>
              </template>
              <el-form-item prop="Party_Organization_Captain_Number">
                <el-input v-model="dataForm.Party_Organization_Captain_Number"
                  class="borderless-input" placeholder="请输入党组织负责人" />
              </el-form-item>
            </el-descriptions-item> -->
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">党组织所在企业</div>
              </template>
              <el-form-item prop="Enterprise_SeriralNumber">
                <!-- <el-select v-model="dataForm.Enterprise_SeriralNumber" placeholder="请选择党组织所在企业" size="large">
                  <el-option v-for="item in Enterprise" :key="item.value" :label="item.Agensies_Name"
                    :value="item.Government_Agencies_SerialNumber" />
                </el-select> -->
                <yl-select v-model="dataForm.Enterprise_SeriralNumber" clearable 
                  filterable placeholder="请选择党组织所在企业" :options="Enterprise"
                  :props="{value:'Government_Agencies_SerialNumber',label:'Agensies_Name'}">
                  <el-table-column prop="Government_Agencies_SerialNumber" show-overflow-tooltip label="企业流水号"></el-table-column>
                  <el-table-column prop="Agensies_Name" show-overflow-tooltip label="企业名称"></el-table-column>
                  <el-table-column prop="Agensies_Address" label="地址"></el-table-column>
                </yl-select>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>

      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>